<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@taglib uri="/WEB-INF/FCKeditor.tld" prefix="FCK"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">
		<title>添加公告</title>
		<link rel="stylesheet"
			href="<%=request.getContextPath()%>/css/common.css" type="text/css" />
		<script type="text/javascript" src="<%=request.getContextPath()%>/FCKeditor/fckeditor.js"></script>
	</head>

	<body>
		<div id="page_container">
			<%@include file="nav.jsp"%>
			<h2>
				添加公告
			</h2>
			<s:form action="systemannouncement/updatesystemannouncement.action"
				method="post" theme="simple">
				<s:hidden name="sa.systemannouncementid"></s:hidden>
				<s:hidden name="sa.systemannouncementind" value="1"></s:hidden>

				<s:hidden name="sa.systemannouncementposter" value="Neo"></s:hidden>

				<table class="table_common">
					<tr>
						<td>
							公告标题：
						</td>
						<td>
							<s:textfield name="sa.systemannouncementtitle" size="70"></s:textfield>
						</td>
					</tr>
					<tr>
						<td>
							公告内容：
						</td>
						<td>
							<s:textarea id="sacontent" name="sa.systemannouncementcontent" cols="55"
								rows="15"></s:textarea>
							<script type="text/javascript">
var oFCKeditor = new FCKeditor('sacontent') ;
oFCKeditor.BasePath = "FCKeditor/" ;
oFCKeditor.Height = 400;
oFCKeditor.ToolbarSet = "Basic" ;
oFCKeditor.ReplaceTextarea();
</script>
						</td>
					<tr>
						<td colspan="2" class="table_submit">
							<s:submit value="提交"></s:submit>
						</td>
					</tr>
				</table>
			</s:form>
		</div>
	</body>
</html>
